#define _CRT_SECURE_NO_WARNINGS


#include"SeqList.h"


void SLtest()
{
	SeqList sl;
	SeqListInit(&sl);

	SeqListPushBack(&sl, 1);
	SeqListPushBack(&sl, 2);
	SeqListPushBack(&sl, 3);
	SeqListPushBack(&sl, 4);
	SeqListPushBack(&sl, 5);

	SeqListPushFront(&sl, 5);
	SeqListPushFront(&sl, 4);
	SeqListPushFront(&sl, 3);
	SeqListPushFront(&sl, 2);
	SeqListPushFront(&sl, 1);

	SeqListInsert(&sl, 3, 10);
	SeqListInsert(&sl, 3, 20);
	SeqListInsert(&sl, 3, 30);
	SeqListInsert(&sl, 3, 40);
	SeqListInsert(&sl, 3, 50);
	SeqListInsert(&sl, 3, 60);
	SeqListInsert(&sl, 3, 70);


	SeqListErase(&sl, 3);
	SeqListErase(&sl, 3);
	SeqListErase(&sl, 3);
	SeqListErase(&sl, 3);
	SeqListErase(&sl, 3);

	
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);
	SeqListPopBack(&sl);

	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);
	SeqListPopFront(&sl);



	SeqListPrint(&sl);

	SeqListDestroy(&sl);
}

int main()
{
	
	SLtest();

	return 0;
}
